package com.wanghaoran.dto;

import com.wanghaoran.constant.MC;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Pattern;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author wanghaoran
 */
@Schema(description = "方向添加DTO")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DirectionInsertDTO implements Serializable {

    @Schema(description = "课程方向名称")
    @NotEmpty(message = "课程方向名称不能为空")
    @Pattern(regexp = MC.Regex.TITLE_RE, message = MC.Regex.TITLE_RE_MSG)
    private String title;

    @Schema(description = "课程方向描述")
    @Pattern(regexp = MC.Regex.INFO_RE, message = MC.Regex.INFO_RE_MSG)
    private String info;
}
